package com.example.competionmanagebackend.mapper;

import com.example.competionmanagebackend.entity.Messages;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @author Rui
 * @description 针对表【messages】的数据库操作Mapper
 * @createDate 2025-03-25
 */
public interface MessagesMapper extends BaseMapper<Messages> {
    // 新增留言
    int insertMessage(Messages message);

    // 编辑留言
    int updateMessage(Messages message);

    // 删除留言
    int deleteMessageById(Integer id);
}